package com.ujiuye.service;

import com.ujiuye.bean.User;
import com.ujiuye.dao.Homework01Dao;

import java.util.List;

public class Homework01Service {
    private Homework01Dao hd = new Homework01Dao();
    /**
     * 账号唯一
     * @param username
     * @return
     */
    public int usernameIsUnique(String username) {
        return hd.usernameIsUnique(username);
    }

    /**
     * 手机号唯一
     * @param phone
     * @return
     */
    public int phoneIsUnique(String phone) {
        return hd.phoneIsUnique(phone);
    }

    /**
     * 模糊搜索
     * @param username
     * @return
     */
    public List<User> dimQuery(String username) {
       return hd.dimQuery(username);
    }
}
